/*
 * ContentPane.cpp  0.4.0 / Nov 30, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#include "ContentPane.h"

// ContentPane :: Public Constructor. ------------------------------------------

/*!
 * \brief Constructs new ContentPane object.
 *
 * \param delegate the delegate
 */
ContentPane::ContentPane(ContentPaneDelegate *delegate)
  : QWidget(0), m_delegate(delegate)
{
  Q_ASSERT(m_delegate);
}

// ContentPane :: Overridden Member Function. ----------------------------------

/*!
 * \inheritDoc
 */
QSize ContentPane::sizeHint() const
{
  return m_delegate->getLayoutPreferredSize();
}
